.class Lcom/example/m6wmr/ChangeUserNameActivity$2;
.super Ljava/lang/Object;
.source "ChangeUserNameActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/ChangeUserNameActivity;->commitdata()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/ChangeUserNameActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/ChangeUserNameActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/ChangeUserNameActivity$2;->this$0:Lcom/example/m6wmr/ChangeUserNameActivity;

    .line 178
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    .line 184
    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lcom/example/m6wmr/ChangeUserNameActivity$2;->this$0:Lcom/example/m6wmr/ChangeUserNameActivity;

    # getter for: Lcom/example/m6wmr/ChangeUserNameActivity;->m:Lmyapp/MyApp;
    invoke-static {v5}, Lcom/example/m6wmr/ChangeUserNameActivity;->access$5(Lcom/example/m6wmr/ChangeUserNameActivity;)Lmyapp/MyApp;

    move-result-object v5

    invoke-virtual {v5}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "/index.php?ctrl=app&source=1"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    .line 185
    const-string v5, "&action=fastloginmodifyname&datatype=json&uid="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/example/m6wmr/ChangeUserNameActivity$2;->this$0:Lcom/example/m6wmr/ChangeUserNameActivity;

    # getter for: Lcom/example/m6wmr/ChangeUserNameActivity;->uid:Ljava/lang/String;
    invoke-static {v5}, Lcom/example/m6wmr/ChangeUserNameActivity;->access$6(Lcom/example/m6wmr/ChangeUserNameActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "&pwd="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/example/m6wmr/ChangeUserNameActivity$2;->this$0:Lcom/example/m6wmr/ChangeUserNameActivity;

    # getter for: Lcom/example/m6wmr/ChangeUserNameActivity;->pwd:Ljava/lang/String;
    invoke-static {v5}, Lcom/example/m6wmr/ChangeUserNameActivity;->access$7(Lcom/example/m6wmr/ChangeUserNameActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "&username="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/example/m6wmr/ChangeUserNameActivity$2;->this$0:Lcom/example/m6wmr/ChangeUserNameActivity;

    # getter for: Lcom/example/m6wmr/ChangeUserNameActivity;->new_username:Ljava/lang/String;
    invoke-static {v5}, Lcom/example/m6wmr/ChangeUserNameActivity;->access$4(Lcom/example/m6wmr/ChangeUserNameActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    .line 184
    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 189
    .local v3, "url":Ljava/lang/String;
    const-string v4, "---------------"

    invoke-static {v4, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 191
    iget-object v4, p0, Lcom/example/m6wmr/ChangeUserNameActivity$2;->this$0:Lcom/example/m6wmr/ChangeUserNameActivity;

    # getter for: Lcom/example/m6wmr/ChangeUserNameActivity;->m:Lmyapp/MyApp;
    invoke-static {v4}, Lcom/example/m6wmr/ChangeUserNameActivity;->access$5(Lcom/example/m6wmr/ChangeUserNameActivity;)Lmyapp/MyApp;

    move-result-object v4

    invoke-static {v3, v4}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v2

    .line 195
    .local v2, "str":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 199
    .local v1, "jsonObject":Lorg/json/JSONObject;
    iget-object v4, p0, Lcom/example/m6wmr/ChangeUserNameActivity$2;->this$0:Lcom/example/m6wmr/ChangeUserNameActivity;

    invoke-static {v4, v2}, Lcom/example/m6wmr/ChangeUserNameActivity;->access$8(Lcom/example/m6wmr/ChangeUserNameActivity;Ljava/lang/String;)V

    .line 201
    iget-object v4, p0, Lcom/example/m6wmr/ChangeUserNameActivity$2;->this$0:Lcom/example/m6wmr/ChangeUserNameActivity;

    # getter for: Lcom/example/m6wmr/ChangeUserNameActivity;->h:Landroid/os/Handler;
    invoke-static {v4}, Lcom/example/m6wmr/ChangeUserNameActivity;->access$9(Lcom/example/m6wmr/ChangeUserNameActivity;)Landroid/os/Handler;

    move-result-object v4

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 214
    .end local v1    # "jsonObject":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 205
    :catch_0
    move-exception v0

    .line 207
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
